package com.ftg.learn.service.impl;

import com.ftg.learn.mapper.ShopCategoryMapper;
import com.ftg.learn.service.ShopCategoryService;
import com.ftg.learn.util.R;
import com.ftg.learn.vo.CategorySelectVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 布衣
 */
@Service
public class ShopCategoryServiceImpl implements ShopCategoryService {

    @Resource
    private ShopCategoryMapper shopCategoryMapper;

    @Override
    public R<List<CategorySelectVo>> allCategorySelect() {
        return R.ok(shopCategoryMapper.showAllCategorySelect());
    }

}
